home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
program
/
355
/
source
/
flsclr
/
flsclr.doc
next >
Wrap
Text File
|
1990-02-02
|
3KB
|
56 lines
This program is an extract of another larger and more
extensive program that I have designed. It may be useful to those
modula 2 programmers that have never done any programming with the
AES libraries and wanted to give it a try.
The program was a challenging one, sometimes very
frustrating, especially figuring out the algorithm for the
scrolling, but rewarding when a hurdle was overcome. My file
selector is very easy to use, but some explaination is necessary.
The file selector operates in a simular manner to the
standard Item Selector found in most GEM programs. The ways that
are simular is in the way that a file name is selected. As you
move the mouse to the area where the file names are displayed and
press with the left mouse button, the file is selected. While
holding the left mouse button down and moving the mouse in the
area of the displayed file names, the file name is deselected and
selected. The scrolling is accomplished in the same manner as the
standard Item Selector, using the up/down arrow, the slider, and
the track.
The difference is in selecting a different disk drive
directory. All the disk drives availiable on your system will be
displayed(up to 16 drives) and if you have a RAM disk, it will be
indicated as one of the drives availiable.
To select another drive, move the mouse to one of the
available drives and click with the mouse on the drive
button(A,B,C...). The contents of the newly selected drive will be
displayed. This makes it a little easlier to select a drive than
in the standard Item Selector.
The selected path is displayed at the top of the dialog box.
If you click on a sub directory(folder) the path will be shown at
the top. To go to the previous directory, click with the mouse on
the long box that displays the path.
If your in a sub directory and you click on another or
current drive, you will be returned to the root directory, ie,
C:\*.*.
One facts I discovered with the standard Item Selector is
that it will only display up to 100 file names! If you have more
than 100 in a directory your out of luck!
Also, a hard copy of the selected path can be printed. Press
the button label 'print.'
One final thing, the Resource file must be in the root
directory, i.e. A:\,B:\,C:\,D:\.....
Any suggested improvements or comments to this module are
appreciated and encouraged! One improvement that is known my me is
in the sorting of the file names. It isn't the quickess, up to 3
seconds or so to sort 170 file names.
Dan McKee
14A Elm St.
Mt. Home AFB, ID 83648
1-208-832-4504
Compuserve - 75766,1515
Delphi - elmac
Genie - D.M.
Rattle Snake BBS 1-208-587-7603 (65 mega bytes of storage!!)